﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

public partial class SQl200联接 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string conn, connstr;

        SqlConnection cc = new SqlConnection("server=192.168.18.88;pwd=888;uid=888;database=dd88;");
        try
        {
            cc.Open();
            Response.Write(cc.State);
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message+cc.State.ToString());
        }
    }
}
